d2 = ((0,0,0),(1,1,1),(2,2,2,1))

f = []
for i in d2: # (0, 0, 0)
    c = []
    for y in range(len(i)): # 0
        a = list(i)  # [0, 0, 0]
        b = a[y] +1  # 把i中的元素加1
        print("b当前值：",b)
        print(type(b))
        c.append(b)  # 然后添加到c
        # e = tuple(c)
        # ddd.append(e)
    # f.append(tuple(ddd))
    d = tuple(c)  #
    f.append(d)

g = tuple(f)
print(g)





























